package com.endoc.phtotapplication.network.api;


import com.endoc.phtotapplication.network.bean.ChangeResponseBean;
import com.endoc.phtotapplication.network.bean.IdList;
import com.endoc.phtotapplication.network.bean.RequestBean;
import com.endoc.phtotapplication.network.bean.PersonResponseBean;
import com.endoc.phtotapplication.network.bean.ResultBean;
import com.endoc.phtotapplication.network.bean.VerifyRequestBean;


import io.reactivex.Observable;
import io.reactivex.subjects.PublishSubject;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.Body;

import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Url;


public interface FaceInterface {


    /*
    * 此处不用泛型了,到时候容易混
    * */

    /*@POST("GetFaceByAndroidcs.aspx")
    Call<ChangeResponseBean> change(@Body RequestBean jsonObject);*/
    @POST
    Call<ChangeResponseBean> change(@Url String url,@Body RequestBean jsonObject);



    @POST
    Observable<ChangeResponseBean> change3(@Url String url, @Body RequestBean jsonObject);

    @POST
    PublishSubject<IdList> change4(@Url String url, @Body RequestBean jsonObject);

    @POST
    Observable<IdList> change5(@Url String url, @Body RequestBean jsonObject);

   /* @POST("GetFaceByAndroidcs.aspx")
    Call<PersonResponseBean> person(@Body RequestBean jsonObject);*/

    @POST
    Call<PersonResponseBean> person(@Url String url,@Body RequestBean jsonObject);


    @POST
    Call<PersonResponseBean> person1(@Url String url,@Body RequestBean jsonObject);
/*    @POST("GetFaceByAndroidcs.aspx")
    Call<ResultBean> addReturn(@Body RequestBean jsonObject);*/

    @POST
    Call<ResultBean> addReturn(@Url String url,@Body RequestBean jsonObject);


    @POST
    Call<ResultBean> addReturn1(@Url String url,@Body RequestBean jsonObject);

   /* @POST("RecFaceRecordByAndroid.aspx")
    Call<ResultBean> verify(@Body VerifyRequestBean jsonObject);*/

    @POST
    Call<ResultBean> verify(@Url String url,@Body VerifyRequestBean jsonObject);
}
